package com.bfl.sa.maintain.keyvalue.service;

import com.bfl.sa.common.service.BaseService;
import com.bfl.sa.maintain.keyvalue.entity.KeyValue;
import com.bfl.sa.maintain.keyvalue.mapper.KeyValueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class KeyValueService extends BaseService<KeyValue, Long> {

    @Resource
    private KeyValueMapper keyValueMapper;

    public KeyValue findByKey(String key) {
        return keyValueMapper.findByKey(key);
    }

}
